package com.wjc.server.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

public class CourseContentFileDto {

    /**
     * id
     */
        private Long id;
    /**
     * 课程id
     */
        
        @NotNull(message = "课程id不能为空")
        private Long courseId;
    /**
     * 地址
     */
        
        
        @Length(min=0,max = 100,message = "地址字符长度过长")
        private String url;
    /**
     * 文件名
     */
        
        
        @Length(min=0,max = 255,message = "文件名字符长度过长")
        private String name;
    /**
     * 大小|字节B
     */
        
        
        
        private Integer size;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", courseId=").append(courseId);
        sb.append(", url=").append(url);
        sb.append(", name=").append(name);
        sb.append(", size=").append(size);
        sb.append("]");
        return sb.toString();
    }

}